package easy;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author:连志鹏
 * @className:jianzhi_03
 * @descrption:
 * @date: 2021/9/27 14:50
 * @version: 0.1
 * @since: 1.8
 */
public class jianzhi_03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] nums = {2,3,1,0,2,5,3};
        Solution solution = new Solution();
        solution.findRepeatNumber(nums);


    }
}
class Solution {
    public int fib(int n) {
        int dp[] = new int[n+1];
        dp[0] = 0;dp[1] = 1;
        for (int i = 2; i <= n; i++) {
            dp[i] = (dp[i-1]+dp[i-2])% 1000000007;
        }

        return dp[n];
    }


    public int findRepeatNumber(int[] nums) {
        int[] num = new int[100001];
        int ret = 0;
        for (int i = 0; i < nums.length; i++) {
            ret = nums[i];
            num[ret]++;
        }
        for (int i = 0; i < num.length; i++) {
            if(num[i]>1)
                System.out.println(i+" ");
        }
        return 0;
    }
}